@import "@/app/styles";

.Button {
  position: relative;
  padding: 10px 30px;
  height: max-content;
  width: max-content;
  color: $color-white;
  background-color: $color-primary;
  border: 1px solid transparent;
  border-radius: $border-radius;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  overflow: hidden;
  z-index: 2;
  transition: all 0.3s;

  & span {
    position: relative;
    display: inline-block;
    z-index: 2;
    height: max-content;
    transition: all $transition;
  }

  &:hover {
    background-color: $color-primary-hover;
    color: $color-white;
    z-index: 2;
  }

  &.Button__disabled {
    color: $color-white;
    background-color: $color-gray;
    border-color: $color-white;

    &:active {
      transform: none;
    }

    &:hover {
      color: $color-white;
      background-color: $color-gray;
      border-color: $color-white;
      cursor: not-allowed;
    }
  }
}
